﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.DAL;
using yb.commerce.Model;

namespace yb.commerce.BLL
{
    public class AdvertiseBusiness
    {
        public bool Add(Advertise advertise)
        {
            return new AdvertiseDAO().Add(advertise);
        }

        public bool Delete(int Id)
        {
            return new AdvertiseDAO().Delete(Id);
        }

        public bool Update(Advertise advertise)
        {
            return new AdvertiseDAO().Update(advertise);
        }

        public Advertise GetEntity(int Id)
        {
            return new AdvertiseDAO().GetEntity(Id);
        }

        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new AdvertiseDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
        public int Next(int Id)
        {
            return new AdvertiseDAO().Next(Id);

        }
        public bool IsHasNext(int Id)
        {
            return new AdvertiseDAO().IsHasNext(Id);

        }
        public int Previous(int Id)
        {
            return new AdvertiseDAO().Previous(Id);
        }
        public bool IsHasPrev(int Id)
        {
            return new AdvertiseDAO().IsHasPrev(Id);
        }
    }
}
